package out1;

/*import java.util.Arrays;

class text11 {

        public static void rotate(int[] nums, int k) {
            int i=0;
            int n=nums.length;
            int[]arr1=new int[n];
            int j=0;


            for(i=0;i<n;i++)
            {

                if(i<=k)
                {
                    arr1[i]=nums[n-k+i];
                }

                else {
                    arr1[i] = nums[j];
                    j++;
                }


                for(i=0;i<n;i++)
                {
                    nums[i]=arr1[i];
                }







            }

            public static void main(String[] args) {
                int[]nums={1,2,3,4,5,6,7};
                rotate(nums,3);
                System.out.println(Arrays.toString(nums));
            }
        }
}

 */
